<?php


namespace app\admin\controller;
use app\admin\logic\MenuLogic;

/**
 * 菜单控制器
 */
class Menu extends AdminBase
{
    
    /**
     * 菜单列表
     */
    public function menuList()
    {


        return $this->returnData('',  MenuLogic::getMenuList($this->params));

    }
    /**
     * 菜单列表(递归)
     */
    public function getRecursiveMenuList()
    {


        return $this->returnData('',  MenuLogic::getRecursiveMenuList($this->params));

    }
    /**
     * 角色分配菜单
     */
    public function getRolesRecursiveMenuList()
    {


        return $this->returnData('',  MenuLogic::getRolesRecursiveMenuList($this->params));

    }



    /**
     * 获取菜单信息
     */
    public function getMenuInfo(){
        $this->returnData('',MenuLogic::getMenuInfo( $this->params));
    }
    /**
     * 菜单添加
     */
    public function menuAdd()
    {

        $this->returnData('',MenuLogic::menuAdd( $this->params));

    }

    /**
     * 菜单编辑
     */
    public function menuEdit()
    {

        $this->returnData('',MenuLogic::menuEdit( $this->params));


    }

    /**
     * 数据状态设置
     */
    public function menuDel()
    {

        $this->returnData('',MenuLogic::menuDel( $this->params));
    }

//    /**
//     * 排序
//     */
//    public function setSort()
//    {
//
//        $this->jump($this->logicAdminBase->setSort('Menu', $this->param));
//    }
}
